<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="~{common/admin-edit-template}">
<head>
    <title>修改</title>
    <link rel="styleSheet" href="/bower_components/zTree_v3/css/metroStyle/metroStyle.css">
</head>
<body class="hold-transition skin-green-light  sidebar-mini">

<div layout:fragment="content">
    <!-- Content Header (Page header) -->

    <!-- Main content -->
    <section class="content container-fluid">
        <!-- edit or add box -->
        <div class="page-edit box box-default" data-widget="box-widget">
            <input id="hidden-id" type="hidden" th:value="${id}">

            <div class="box-body">
                <div class="row">
                    <div class="input-group input-group-xs">
                        <select id="select-button" class="form-control">
                            <option th:each="button : ${buttonList}" th:value="${button.id}"
                                    th:text="${button.name}"></option>
                        </select>
                        <span class="input-group-btn">
                            <a class="form-control btn btn-default" onclick="operate.search();" title="查询">
							    <i class=" fa fa-search"></i>
							    查询
						    </a>
                        </span>
                    </div>
                </div>
                <div class="row">
                    <ul id="ul-tree" class="ztree"></ul>
                </div>
            </div>
            <!-- /.box-body -->
            <div class="box-footer">
                <button type="button" class="btn btn-danger pull-right" onclick="operate.cancel()">取消</button>
                <button type="button" class="btn btn-primary pull-right btn-submit" onclick="operate.submit()">提交
                </button>
            </div>
            <!-- /.box-footer -->


            <!--/.form -->
            <div class="overlay" style="display: none">
                <i class="fa fa-refresh fa-spin"></i>
            </div>
            <!-- /.loading overlay-->
        </div>
        <!-- /.edit or add box -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->


<div layout:fragment="page-js">
    <script src="/bower_components/zTree_v3/js/jquery.ztree.all.js"></script>
    <script src="/dist/js/pages/role/button-auth-edit.js"></script>
</div>


</body>
</html>